﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1>
            <a class="aui-btn aui-pull-right" tapmode onclick="openClub()">
                <i class="aui-iconfont aui-icon-mobile"></i>
            </a>
            提交结果
        </h1>
    </header>
    <div class="aui-content aui-margin-b-15">
        <li class="aui-list-header"></li>

        <script type="text/javascript" src="~/script/aui-dialog.js"></script>
        <script type="text/javascript" src="~/script/api.js"></script>
        <script type="text/javascript">

                    var dialog = new auiDialog({})
                    if (@ViewData["ID"].ToString()=="2")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '排班更变申请提交成功',
                                buttons: ['确定']
                            }, function (ret) {
                               
                                window.location.href = "/Doctor/Index"
                                console.log(ret)
                            })
                        }
                    }
                    else
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "添加结果",
                                msg: '您已成功添加此医生系统为其生成登陆ID为：<p>@ViewData["ID"]</p><p>将继续为其添加照片</p>',
                                buttons: ['取消', '确定']
                            }, function (ret) {
                                if (ret.buttonIndex == 2) {
                                    window.location.href = "/Admin/UploadImage";
                                }
                                else window.location.href = "/Admin/Index"
                                console.log(ret)
                            })
                        }
                    }


                    apiready = function () {
                        api.setStatusBarStyle({
                            style: 'light'
                        });
                        api.parseTapmode();
                        var header = $api.byId('header');
                        var headerPos = $api.offset(header);
                        var body_h = $api.offset($api.dom('body')).h;
                        var header_h = $api.offset($api.byId('header')).h;
                        api.openFrame({
                            name: 'index_frm',
                            url: '~/html/index_frm.html',
                            bounces: true,
                            rect: {
                                x: 0,
                                y: header_h,
                                w: 'auto',
                                h: 'auto'
                            }
                        })
                    };
                    function openClub() {
                        var delay = 0;
                        if (api.systemType != 'ios') {
                            delay = 300;
                        }
                        api.openWin({
                            name: 'club_win',
                            url: '~/html/club_win.html',
                            bounces: false,
                            delay: delay,
                            slidBackEnabled: true,
                            vScrollBarEnabled: false,
                            progress: {
                                type: "page"
                            }
                        });
                    }
                    function closeWin() {
                        api.closeWin({
                        });
                    }
        </script>


</body>
</html>




